package com.dongrj.framework.csv;


/**
 * @author dongrongjun
 * @date 2020/4/2
 */
public class CsvImportException extends RuntimeException {

    private static final String MSG = "导入失败!";

    private Integer code;

    CsvImportException() {
        super(MSG);
    }

    public CsvImportException(Integer code, String message, Throwable e) {
        super(message, e);
        this.code = code;
    }

    public CsvImportException(Exception e) {
        super(e);
    }

    public CsvImportException(String message) {
        super(message);
    }

    public CsvImportException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
